package com.itany.corejava.day03;

public class Test10 {

    public static void main(String[] args) {

        for (int i = 1000; i <= 9999; i++) {

            boolean b=true;

            for (int j = 2; j <=10 ; j++) {
                if(i%j != j-1){
                  b=false;
                  break;
                }
            }

            if(true==b){
                System.out.println(i);
            }

        }


    }
}
